import { requestGet, requestPost } from "./request/request"

/**
 * 试卷管理 获取试卷管理主页面数据
 * @param obj 
 * @returns 
 */
export const getTestPapers=(obj:any)=>{
   return requestGet("api/Exam/GetTestPapers",obj);
}

/**
 * 试卷详情
 * @param obj 
 * @returns 
 */
export const getSingleTestPaper=(obj:any)=>{
    return requestGet("api/Exam/getSingleTestPaper",obj);
 }


 /**
 * 试卷的发布与取消
 * @param obj 
 * @returns 
 */
export const PublishTestPapers=(obj:any)=>{
   return requestPost("api/Exam/PublishTestPapers",obj);
}


 /**
 * 试卷的禁用与启用
 * @param obj 
 * @returns 
 */
 export const BanTestPapers=(obj:any)=>{
   return requestPost("api/Exam/BanTestPapers",obj);
}


 /**
 * 试卷的删除
 * @param obj 
 */
 export const DeleteTestPapers=(obj:any)=>{
   return requestPost("api/Exam/DeleteTestPapers",obj);
}


 /**
 * 根据难度获取随机试题
 * @param obj 
 * @returns 
 */
 export const RandomQuestions=(obj:any)=>{
   return requestGet("api/Exam/RandomQuestions",obj);
}


 /**
 * 组卷完成按钮 新增试卷
 * @param obj 
 * @returns 
 */
 export const addTestPaper=(obj:any)=>{
   return requestPost("api/Exam/addTestPaper",obj);
}


 
 